package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 地区数据对象 ha_area
 * 
 * @author 鲍小伟
 * @date 2025-11-04
 */
public class HaArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String name;

    /** 地区编码 */
    @Excel(name = "地区编码")
    private String code;

    /** 层级 */
    @Excel(name = "层级")
    private Long level;

    /** 拼音 */
    @Excel(name = "拼音")
    private String pinyin;

    /** 首字母 */
    @Excel(name = "首字母")
    private String initials;

    /** 状态（1正常 0暂停） */
    @Excel(name = "状态", readConverterExp = "1=正常,0=暂停")
    private Integer enable;

    /** 地区编码 */
    @Excel(name = "地区编码")
    private String pcodeId;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 子节点 鲍小伟 20251105 */
    private List<HaArea> children;
    public List<HaArea> getChildren() {
        return children;
    }

    public void setChildren(List<HaArea> children) {
        this.children = children;
    }


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setPinyin(String pinyin) 
    {
        this.pinyin = pinyin;
    }

    public String getPinyin() 
    {
        return pinyin;
    }

    public void setInitials(String initials) 
    {
        this.initials = initials;
    }

    public String getInitials() 
    {
        return initials;
    }

    public void setEnable(Integer enable) 
    {
        this.enable = enable;
    }

    public Integer getEnable() 
    {
        return enable;
    }

    public void setPcodeId(String pcodeId) 
    {
        this.pcodeId = pcodeId;
    }

    public String getPcodeId() 
    {
        return pcodeId;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("level", getLevel())
            .append("pinyin", getPinyin())
            .append("initials", getInitials())
            .append("enable", getEnable())
            .append("pcodeId", getPcodeId())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("children", getChildren())
            .toString();
    }
}
